package com.jnevision.leaveapprovalrecords.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 请假审批记录
 * </p>
 *
 * @author gavin
 * @since 2019-07-13
 */
@TableName("b_leave_approval_records")
public class LeaveApprovalRecords extends Model<LeaveApprovalRecords> {
    private static final long serialVersionUID = 6999175595613484529L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    /**
     * 请假申请
     */
    @TableField("leave_id")
    private String leaveId;

    /**
     * 审批人
     */
    @TableField("user_id")
    private String userId;

    /**
     * 审批时间
     */
    @TableField("approve_time")
    private String approveTime;

    /**
     * 结果，状态1通过，2未通过，0审核中
     */
    @TableField("result")
    private Integer result;

    /**
     * 原因
     */
    @TableField("reason")
    private String reason;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLeaveId() {
        return leaveId;
    }

    public void setLeaveId(String leaveId) {
        this.leaveId = leaveId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getApproveTime() {
        return approveTime;
    }

    public void setApproveTime(String approveTime) {
        this.approveTime = approveTime;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LeaveApprovalRecords{" + "id=" + id + ", leaveId=" + leaveId + ", userId=" + userId + ", approveTime="
            + approveTime + ", result=" + result + ", reason=" + reason + "}";
    }
}